﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="banner_list.aspx.cs" Inherits="MxWeiXinPF.Web.shopmgr.indexbanner.banner_list" %>

<%@ Import Namespace="MxWeiXinPF.Common" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />


    <title>微商城-图片管理</title>

    <%=PageJSAndStype("list").ToString() %>

    <script type="text/javascript">
        $(function () {
            //图片延迟加载
            $(".pic img").lazyload({ effect: "fadeIn" });
            //点击图片链接
            $(".pic img").click(function () {
                var linkUrl = $(this).parent().parent().find(".foot a").attr("href");
                if (linkUrl != "") {
                    location.href = linkUrl; //跳转到修改页面
                }
            });
        });
    </script>


</head>

<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a class="home"><i class="iconfont icon-home"></i><span>图片管理</span></a>
        </div>
        <!--/导航栏-->
        <asp:Label ID="lblWid" runat="server" Text="" Style="display: none;"></asp:Label>
        <!--工具栏-->
        <div id="floatHead" class="toolbar-wrap">
            <div class="toolbar">
                <div class="box-wrap">
                    <a class="menu-btn"></a>
                    <div class="l-list">
                        <ul class="icon-list">
                            <li><a class="icon-btn add" href="banner_edit.aspx?action=<%=MXEnums.ActionEnum.Add %>&" id="itemAddButton"><i class="iconfont icon-close"></i><span>新增图片</span></a></li>

                            <li><a class="all" href="javascript:;" onclick="checkAll(this);"><i class="iconfont icon-check"></i><span>全选</span></a></li>
                            <li>
                                <asp:LinkButton ID="btnDelete" runat="server" CssClass="del" OnClientClick="return ExePostBack('btnDelete');" OnClick="btnDelete_Click"><i class="iconfont icon-delete"></i><span>删除</span></asp:LinkButton></li>
                        </ul>
                    </div>
                    <div class="r-list">
                        <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword" />
                        <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn-search" OnClick="btnSearch_Click"><i class="iconfont icon-search"></i></asp:LinkButton>
                    </div>
                </div>
            </div>
        </div>
        <!--/工具栏-->

        <!--列表-->

        <asp:Repeater ID="rptList2" runat="server" OnItemCommand="rptList_ItemCommand">
            <HeaderTemplate>
                <div class="imglist">
                    <ul>
            </HeaderTemplate>
            <ItemTemplate>
                <li>
                    <div class="details<%#Eval("bannerPicUrl").ToString() != "" ? "" : " nopic"%>">
                        <div class="check">
                            <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" /><asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" />
                        </div>
                        <%#Eval("bannerPicUrl").ToString() != "" ? "<div class=\"pic\"><img src=\"../images/loadimg.gif\" data-original=\"" + Eval("bannerPicUrl") + "\" /></div><i class=\"absbg\"></i>" : ""%>
                        <h1><span><%#Eval("bannerName")%></span></h1>
                        <div class="remark" style="height: 20px;">
                            <%#Eval("remark").ToString() == "" ? "暂无描述说明..." : Eval("remark").ToString()%>
                        </div>
                        <div class="tools">

                            <asp:Label ID="Label1" runat="server" Text='<%#Eval("sort_id")%>' Style="float: right;"></asp:Label>
                            <span style="float: right; line-height: 26px; font-size: 12px;">排序：</span>
                        </div>
                        <div class="foot">

                            <p class="time"><%#string.Format("{0:yyyy-MM-dd HH:mm:ss}", Eval("createDate"))%></p>
                            <a href="banner_edit.aspx?action=<%#MXEnums.ActionEnum.Edit %>&id=<%#Eval("id")%>" title="编辑" class="edit"><i class="iconfont icon-pencil"></i></a>
                        </div>
                    </div>
                </li>
            </ItemTemplate>
            <FooterTemplate>
                <%#rptList2.Items.Count == 0 ? "<div align=\"center\" style=\"font-size:12px;line-height:30px;color:#666;\">暂无记录</div>" : ""%>
  </ul>
</div>
           
            </FooterTemplate>
        </asp:Repeater>

        <!--/列表-->

        <!--内容底部-->
        <div class="line20"></div>
        <div class="pagelist">
            <div class="l-btns">
                <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" OnTextChanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
            </div>
            <div id="PageContent" runat="server" class="default"></div>
        </div>
        <!--/内容底部-->
    </form>
</body>
</html>
